import http from '../utils/http.js'
/**
 * 统计指定井队下所有站场的总日流量、总周流量
 */
export const statisticTotalFlowApi = (teamId) => {
  return http.post(`/washer/statistic/team/${teamId}/totalFlow`)
}
/**
 * 统计指定井队下所有站场本周异常数据的参数类型占比
 */
export const statisticParamTypeApi = (teamId) => {
  return http.post(`/washer/statistic/team/${teamId}/paramType`)
}
/**
 * 统计指定井队下所有站场本周异常数据量
 */
export const statisticTeamRiskRecordApi = (teamId) => {
  return http.post(`/washer/statistic/team/${teamId}/riskRecord`)
}
/**
 * 统计指定井队下所有管线本周每天的日累计流量
 */
export const statisticTeamWeekTotalFlowApi = (teamId) => {
  return http.post(`/washer/statistic/team/${teamId}/weekTotalFlow`)
}
/**
 * 统计今日指定井队下的各站场下的总流量走趋
 */
export const statisticDayTotalFlowTrendApi = (teamId) => {
  return http.post(`/washer/statistic/team/${teamId}/dayTotalFlowTrend`)
}
/**
 * 统计指定井队今日和本周的异常数据量
 */
export const statisticTeamTotalRiskRecordApi = (teamId) => {
  return http.post(`/washer/statistic/team/${teamId}/teamRiskRecord`)
}
